home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / make-3.71 / vpath.c < prev   
Encoding:
Text File  |  1994-08-05  |  2.7 KB  |  117 lines

  1. *** orig/make-3.71/vpath.c    Thu Jul 21 01:30:12 1994
  2. --- src/make-3.71/vpath.c    Thu Jul 21 01:33:14 1994
  3. ***************
  4. *** 20,25 ****
  5. --- 20,30 ----
  6.   #include "file.h"
  7.   #include "variable.h"
  8.   
  9. + #ifdef __MSDOS__
  10. + #define PATH_SEPARATOR_CHAR ';'
  11. + #else
  12. + #define PATH_SEPARATOR_CHAR ':'
  13. + #endif
  14.   
  15.   /* Structure used to represent a selective VPATH searchpath.  */
  16.   
  17. ***************
  18. *** 177,183 ****
  19.     maxelem = 2;
  20.     p = dirpath;
  21.     while (*p != '\0')
  22. !     if (*p++ == ':' || isblank (*p))
  23.         ++maxelem;
  24.   
  25.     vpath = (char **) xmalloc (maxelem * sizeof (char *));
  26. --- 182,188 ----
  27.     maxelem = 2;
  28.     p = dirpath;
  29.     while (*p != '\0')
  30. !     if (*p++ == PATH_SEPARATOR_CHAR || isblank (*p))
  31.         ++maxelem;
  32.   
  33.     vpath = (char **) xmalloc (maxelem * sizeof (char *));
  34. ***************
  35. *** 185,191 ****
  36.   
  37.     /* Skip over any initial colons and blanks.  */
  38.     p = dirpath;
  39. !   while (*p == ':' || isblank (*p))
  40.       ++p;
  41.   
  42.     elem = 0;
  43. --- 190,196 ----
  44.   
  45.     /* Skip over any initial colons and blanks.  */
  46.     p = dirpath;
  47. !   while (*p == PATH_SEPARATOR_CHAR || isblank (*p))
  48.       ++p;
  49.   
  50.     elem = 0;
  51. ***************
  52. *** 196,202 ****
  53.   
  54.         /* Find the end of this entry.  */
  55.         v = p;
  56. !       while (*p != '\0' && *p != ':' && !isblank (*p))
  57.       ++p;
  58.   
  59.         len = p - v;
  60. --- 201,207 ----
  61.   
  62.         /* Find the end of this entry.  */
  63.         v = p;
  64. !       while (*p != '\0' && *p != PATH_SEPARATOR_CHAR && !isblank (*p))
  65.       ++p;
  66.   
  67.         len = p - v;
  68. ***************
  69. *** 225,231 ****
  70.       }
  71.   
  72.         /* Skip over colons and blanks between entries.  */
  73. !       while (*p == ':' || isblank (*p))
  74.       ++p;
  75.       }
  76.   
  77. --- 230,236 ----
  78.       }
  79.   
  80.         /* Skip over colons and blanks between entries.  */
  81. !       while (*p == PATH_SEPARATOR_CHAR || isblank (*p))
  82.       ++p;
  83.       }
  84.   
  85. ***************
  86. *** 461,467 ****
  87.   
  88.         for (i = 0; v->searchpath[i] != 0; ++i)
  89.       printf ("%s%c", v->searchpath[i],
  90. !         v->searchpath[i + 1] == 0 ? '\n' : ':');
  91.       }
  92.   
  93.     if (vpaths == 0)
  94. --- 466,472 ----
  95.   
  96.         for (i = 0; v->searchpath[i] != 0; ++i)
  97.       printf ("%s%c", v->searchpath[i],
  98. !         v->searchpath[i + 1] == 0 ? '\n' : PATH_SEPARATOR_CHAR);
  99.       }
  100.   
  101.     if (vpaths == 0)
  102. ***************
  103. *** 479,484 ****
  104.         fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
  105.   
  106.         for (i = 0; path[i] != 0; ++i)
  107. !     printf ("%s%c", path[i], path[i + 1] == 0 ? '\n' : ':');
  108.       }
  109.   }
  110. --- 484,489 ----
  111.         fputs ("\n# General (`VPATH' variable) search path:\n# ", stdout);
  112.   
  113.         for (i = 0; path[i] != 0; ++i)
  114. !     printf ("%s%c", path[i], path[i + 1] == 0 ? '\n' : PATH_SEPARATOR_CHAR);
  115.       }
  116.   }
  117.